<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 agora_shopping_cart_done.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

// Note that adding the shopping cart takes three goes, the last two of which are setting htaccess stuff. This is bad because naughty template designers could remove the password stuff and leave the cart unprotected...
$output = <<<EOFpacman
<cpanel Cgi="installacart($FORM{'url'},$FORM{'auser'},$FORM{'apass'})">
<cpanel Htaccess="set_protect($FORM{'url'}/protected,1,Agora Cart Admin)">
<cpanel Htaccess="set_pass($FORM{'url'}/protected,$FORM{'auser'},$FORM{'apass'})">
EOFpacman;

//
// For the record, we hate having to use a 'done' page.
//

$html_root_path = '../../';
$page_title = "Agora Shopping Cart Created";
include $root_path.'common.php';
include $root_path.'page_header.php';

message_done('A shopping cart has now been set up at http://'.$domain.'<cpanel print="$FORM{'url'}">, and the admin username has been set to <cpanel print="$FORM{'auser'}">. Your password is not displayed for security reasons.', $output, 'agora_shopping_cart.php', 'Agora Shopping Cart', $page_title);

?>